#include <stdlib.h>
#include <stdio.h>
#define MAX_STRING_LENGTH 100

int main(){
	/*
		Discusses a for loop from the text. Here it is:
  		for(i=0; i<lim-1 && (c=getchar()) != '\n' && c != EOF; ++i)
    		s[i] = c;
		Write a loop equivalent to the for loop above without using && or || . 
	*/
	
	int i =0 , 
		lim = MAX_STRING_LENGTH;
	char c, s[MAX_STRING_LENGTH];
	c = getchar();
	for(i=0; i<lim-1; i++){
		if(c == '\n'){
			break;
		}else if(c == EOF){
			break;
		}
		s[i] = c;
		fflush(stdin);
		c = getchar();
	}
	
}

